package cci.dao;

import java.util.List;

import javax.sql.DataSource;

import cci.jdbc.ConnectionJavaDB;

public abstract class DAO <T> {
	public DataSource datasource = ConnectionJavaDB.getInstance();
	
	public abstract T create(T obj);
	
	public abstract T update (T obj);

	public abstract void delete(T obj);
	public abstract T find(long id);
	public abstract List<T> findAll();
}
